﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="trading_history.aspx.cs" Inherits="LinkCard.ShopCP.Sell.trading_history" %>

<%@ Import Namespace="LinkCard.AdminCP.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript">
        function setValue(page) {
            location.href = 'trading_history.aspx?page=' + page;
        }
    </script>
    <section id="content">
  <section class="container_12 clearfix">
    <section id="main" class="grid_12">
      <article>
        <div class="h1">Lịch sử giao dịch</div>
        <div><strong>Khách hàng:</strong>
        <asp:Label ID="CustomerName" runat="server"></asp:Label>
        </div>
        <div><strong>Mã thẻ:</strong>
        <asp:Label ID="CardNumber" runat="server"></asp:Label>
        </div>
        <div style="margin-bottom:10px;"><strong>Số điểm hiện có:</strong>
        <asp:Label ID="Point" runat="server"></asp:Label>
        </div>
        <table id="table1" class="gtable sortable" >
            <thead>
              <tr>
                
                <th>Ngày thanh toán</th>
                <th>Deal</th>
                <th>Số tiền giao dịch</th>
                <th >Thanh toán bằng tiền mặt</th>
                <th>Thanh toán bằng đổi điểm</th>
                <th style="text-align: right">Số điểm tích lũy được</th>
                
              </tr>
            </thead>
            <tbody>
            <asp:Repeater ID="msgList" runat="server">
                        <ItemTemplate>
                            <tr>
                                
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "CreateDate")%>
                                </td>
                                
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "DealName")%>
                                </td>
                                <td>
                                    <%# Utility.sDecimal(ConvertUtility.ToDecimal( DataBinder.Eval(Container.DataItem, "TotalValue")))%>
                                </td>
                                <td>
                                    <%# Utility.sDecimal(ConvertUtility.ToDecimal( DataBinder.Eval(Container.DataItem, "ByCash")))%>
                                </td>
                                <td>
                                   <%# Utility.sDecimal(ConvertUtility.ToDecimal( DataBinder.Eval(Container.DataItem, "ByPoint")))%>
                                </td>
                                <td align="right">
                                <%# Utility.sDecimal(ConvertUtility.ToDecimal(DataBinder.Eval(Container.DataItem, "PointTemp")))%>
                                   
                                </td>
                                
                                
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr id="msgNoData" runat="server">
                        <td colspan="6" align="center">
                            Không có giao dịch nào!
                        </td>
                    </tr>
              
              
            </tbody>
          </table>
          <div class="tablefooter clearfix">
          <div class="pagination" id="divPager" runat="server">
               <asp:Literal ID="PagerShow" runat="server"></asp:Literal>
               </div></div>
        </article>
        </section></section></section>
</asp:Content>
